package com.siqiaoren.service;

import com.siqiaoren.domain.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface UserService {
    public boolean save(User user);

    public boolean delete(Integer id);

    public User getByName(String username);

    public boolean checkNamePassword(String username, String password);

    public List<User> getAll();

}
